//
//  FirstTouchFooterView.m
//  EMMApp
//
//  Created by 无常先生 on 2018/8/20.
//  Copyright © 2018年 YiXun. All rights reserved.
//

#import "FirstTouchFooterView.h"

@interface FirstTouchFooterView () <UITextViewDelegate>
@property (weak, nonatomic) IBOutlet UITextView *textView;
@property (weak, nonatomic) IBOutlet UILabel *placeholderLabel;


@end

@implementation FirstTouchFooterView

+ (instancetype)loadView {
    
    FirstTouchFooterView *view = [[NSBundle mainBundle]loadNibNamed:@"FirstTouchFooterView" owner:nil options:nil].lastObject;
    view.frame = CGRectMake(0, 0, EMM_WIDTH, 210);
    return view;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.textView.delegate = self;
}

#pragma mark - UITextViewDelegate

- (void)textViewDidChange:(UITextView *)textView {
    self.placeholderLabel.hidden = textView.hasText;
}

@end
